package cn.com.mall.product.feign;

import cn.com.mall.common.dto.SkuHasStockVo;
import cn.com.mall.common.dto.SkuReductionTo;
import cn.com.mall.common.dto.SpuBoundDTo;
import cn.com.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("mall-coupon")
public interface CouponFeignService {

    @PostMapping("coupon/spubounds/save")
    R saveSpuBounds(@RequestBody  SpuBoundDTo spuBoundDTo);

    @PostMapping("coupon/skufullreduction/saveinfo")
    R<List<SkuHasStockVo>> saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
